<?php


namespace App\Http\Controllers\android\validate;


use Illuminate\Support\Facades\Validator;

class Control
{
    public static function getSetting($param){
        $rules = [
            'sn'=>'required|between:11,13',
        ];
        $msg = [
            'sn.required'=>'sn码为空',
            'sn.between'=>'sn码长度不正确',
        ];
        return Validator::make($param,$rules,$msg)->errors()->all();
    }

    public static function getBrowser($param){
        $rules = [
            'sn'=>'required|between:11,13',
        ];
        $msg = [
            'sn.required'=>'sn码为空',
            'sn.between'=>'sn码长度不正确',
        ];
        return Validator::make($param,$rules,$msg)->errors()->all();
    }

    public static function getLabel($param){
        $rules = [
            'sn'=>'required|between:11,13',
        ];
        $msg = [
            'sn.required'=>'sn码为空',
            'sn.between'=>'sn码长度不正确',
        ];
        return Validator::make($param,$rules,$msg)->errors()->all();
    }
}